package com.songmao.pricecloudapitest.socket.entity.tcp;

import com.alibaba.fastjson.annotation.JSONField;


/**
 * @author Remy
 * @description :
 * @date 2020-07-07 18:08
 */

public class ResponseTcpEntity {

    @JSONField(name = "data_type")
    private int dataType;

    @JSONField(name = "data_time")
    private long dataTime;

    @JSONField(name = "version")
    private String version;

    @JSONField(name = "data")
    private QuoteSymbolEntity data;

    public ResponseTcpEntity(){}

    public ResponseTcpEntity(int dataType, long dataTime, String version, QuoteSymbolEntity data) {
        this.dataType = dataType;
        this.dataTime = dataTime;
        this.version = version;
        this.data = data;
    }

    public int getDataType() {
        return dataType;
    }

    public void setDataType(int dataType) {
        this.dataType = dataType;
    }

    public long getDataTime() {
        return dataTime;
    }

    public void setDataTime(long dataTime) {
        this.dataTime = dataTime;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public QuoteSymbolEntity getData() {
        return data;
    }

    public void setData(QuoteSymbolEntity data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "ResponseTcpEntity{" +
                "dataType=" + dataType +
                ", dataTime=" + dataTime +
                ", version='" + version + '\'' +
                ", data=" + data +
                '}';
    }
}
